#!/bin/sh

./gradlew clean assembleSytRelease
buildStatus=$?
if [[ ! ${buildStatus} = 0 ]]; then
	exit 1
fi
xytApkPath=`ls -t app/build/outputs/apk/Syt/release/*.apk |head -1`
echo "--->>>xyt apk path in TrialLab_Android: ${xytApkPath}"

./gradlew assembleSytUatRelease
buildStatus=$?
if [[ ! ${buildStatus} = 0 ]]; then
	exit 1
fi
xytUatApkPath=`ls -t app/build/outputs/apk/SytUat/release/*.apk |head -1`
echo "--->>>xyt apk path in TrialLab_Android: ${xytUatApkPath}"

./gradlew assembleSytTestRelease
buildStatus=$?
if [[ ! ${buildStatus} = 0 ]]; then
	exit 1
fi
xytTestApkPath=`ls -t app/build/outputs/apk/sytTest/release/*.apk |head -1`
echo "--->>>xyt apk path in TrialLab_Android: ${xytTestApkPath}"






#call gradlew clean
#
#start gradlew assembleSytTestRelease
#start gradlew assembleSytUatRelease
#start gradlew assembleSytRelease

